//
//  WZMineItem.m
//  ETong
//
//  Created by wanzhao on 15/10/29.
//  Copyright (c) 2015年 wanzhao. All rights reserved.
//

#import "WZMineItem.h"

@implementation WZMineItem


- (instancetype)init
{
    self = [super init];
    if (self) {
        self.isHeadImage = NO;
    }
    return self;
}

- (instancetype)initWithTitle:(NSString *)title icon:(NSString *)icon subTitle:(NSString *)subTitle headImage:(NSString *)image
{
    if (self = [super init]) {
        self.title = title;
        if (icon.length > 0) {
            self.icon = icon;
        }
        if (subTitle.length > 0)
        {
            self.subTitle = subTitle;
        }
        if (image.length > 0)
        {
            self.headImage = image;
        }
    }
    return self;
}

+ (instancetype)mineItemWithTitle:(NSString *)title icon:(NSString *)icon
{
    return [[self alloc] initWithTitle:title icon:icon subTitle:nil headImage:nil];
}

+ (instancetype)mineItemWithTitle:(NSString *)title
{
    return [[self alloc] initWithTitle:title icon:nil subTitle:nil headImage:nil];
}

+ (instancetype)mineItemWithtitle:(NSString *)title subTitle:(NSString *)subTitle
{
    return [[self alloc] initWithTitle:title icon:nil subTitle:subTitle headImage:nil];
}

+ (instancetype)mineItemWithtitle:(NSString *)title headImage:(NSString *)image
{
    return [[self alloc] initWithTitle:title icon:nil subTitle:nil headImage:image];
}


@end
